// 多语言
import Vue from 'vue'
import VueI18n from 'vue-i18n'
Vue.use(VueI18n)
import enLocale from 'element-ui/lib/locale/lang/en'
import zhLocale from 'element-ui/lib/locale/lang/zh-CN'
import enTran from '@/components/lang/en'
import zhTran from '@/components/lang/zh'
export default new VueI18n({
  locale: localStorage.getItem('language') || 'zh',
  messages: {
    en: {
      greeting: 'hello',
      ...enLocale,
      ...enTran
    },
    zh: {
      greeting: '你好',
      ...zhLocale,
      ...zhTran
    }
  }
})
